home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_sol_ambruins.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  87 lines

  1. # Jones 3D Cog Script
  2. #
  3. # SOL_AmbFinalRoom.cog
  4. #
  5. # [TRM]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. # ========================================================================================
  9.  
  10. symbols
  11.  
  12.     message     startup
  13.     message        entered
  14.     message     pulse
  15.  
  16.     thing        soundPos0        nolink
  17.     thing        soundPos1        nolink
  18.     
  19.     sector      on_sec1         linkID=1
  20.     sector      on_sec2         linkID=1
  21.     
  22.     sector      off_sec1        linkID=0
  23.  
  24.     sound        enhanced0=sol_ambient01_a.wav   local
  25.     sound        enhanced1=sol_ambient02_a.wav   local
  26.     sound        enhanced2=sol_ambient03_a.wav   local
  27.     sound        enhanced3=sol_ambient04_a.wav   local
  28.     sound        enhanced4=sol_ambient05_a.wav   local
  29.     sound        enhanced5=nub_ambient4_a.wav    local
  30.     
  31.     sound       basic0=nub_ambient1_a.wav   local
  32.     sound       basic1=nub_ambient2_a.wav   local
  33.     sound       basic2=nub_ambient3_a.wav   local
  34.     
  35.     int            sndNum            local
  36.     int            numPos=4        local
  37.     int            count           local
  38.  
  39. end
  40.  
  41. # ========================================================================================
  42.  
  43. code
  44.  
  45. startup:
  46.  
  47.     global4 = 0;
  48.     return;
  49.  
  50. # ========================================================================================
  51.  
  52. entered:
  53.  
  54.     if(GetSenderID() == 1)
  55.     {
  56.         setpulse(2.0);
  57.     }
  58.     
  59.     if(GetSenderID() == 0)
  60.     {
  61.         SetPulse(0.0);
  62.     }
  63.     
  64.     return;
  65.  
  66. # ========================================================================================
  67.  
  68. pulse:
  69.  
  70.     # no commies yet
  71.     if(global4 == 0)
  72.     {
  73.         PlaySoundThing(basic0[RandBetween(0, 2)], soundPos0[RandBetween(0, 1)], 1.0, -1, -1, 0);
  74.     }
  75.     
  76.     # commies are driving around
  77.     else if(global4 == 1)
  78.     {
  79.         PlaySoundThing(enhanced0[RandBetween(0, 5)], soundPos0[RandBetween(0, 1)], 1.0, -1, -1, 0);
  80.     }
  81.     
  82.     return;
  83.  
  84. # ========================================================================================
  85.  
  86. end
  87.